import request from './request.js'

const user = {
	login(data) {
		return request.post('/api/v1/member/Login', data)
	},
	getMemberInfo(data){
		return request.get('/api/v1/member/getMemberInfo', {data})
	},
	//完善用户信息
	editMemberInfo(data) {
		return request.post('/api/v1/member/editMemberInfo', data)
	},
	//资金变动记录
	withdrawalRecode(data){
		return request.get('/api/v1/member/withdrawalRecode', {data})
	},
	
	//企业列表
	companyGetList(data){
		return request.get('/api/v1/company/getList', {data})
	},
	opCompany(data){
		return request.post('/api/v1/company/opCompany', data)
	},
	//企业搜索
	searchCompany(data){
		return request.get('/api/v1/Member/searchCompany', {data})
	},
	
	//学历列表
	educationGetList(data){
		return request.get('/api/v1/Education/getList', {data})
	},
	//添加/修改学历
	opEducation(data){
		return request.post('/api/v1/Education/opEducation', data)
	},
	//手机号授权获取
	getPhoneNumber(data){
		return request.post('/api/v1/member/getPhoneNumber', data)
	},
	//学校搜索
	searchSchool(data){
		return request.get('/api/v1/Member/searchSchool', {data})
	},
	//提现须知
	withdrawalNotice(data){
		return request.get('/api/v1/pub/withdrawalNotice', {data})
	},
	//提现申请
	withdrawal(data){
		return request.post('/api/v1/member/withdrawal', data)
	},
	//消息列表
	messageList(data){
		return request.get('/api/v1/member/messageList', {data})
	},
	//企业停用
	downCompany(data){
		return request.get('/api/v1/company/downCompany', {data})
	},
	//学历停用
	downEducation(data){
		return request.get('/api/v1/Education/downEducation', {data})
	},
	//消息数量
	messageReadAndGetNum(data){
		return request.get('/api/v1/member/messageReadAndGetNum', {data})
	},
	// 上下级关系绑定
	memberShare(data){
		return request.post('/api/v1/member/member_share', data)
	},
}
export default user